package com.hege.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author hege
 * @Date 2020/11/24 21:41
 * @Version 1.0
 */
@RestController
public class TestController {

    @RequestMapping("/test")
    public Map<String,String> test() {

        Map<String, String> map = new HashMap<>();
        map.put("code", "200");
        map.put("msg", "success");

        return map;
    }
}
